<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2016/9/23
 * Time: 10:55
 */

namespace zrx;


class Util
{
    static public function br($var_name,$param)
    {
        static $style;
        if(!isset($style)){
            echo $style = '<style type="text/css">.big{font-family: Consolas}</style>';
        }
        echo "<pre class='big'>";
        if(is_array($param)){
            echo $var_name."<br>";
            print_r($param);
        }elseif (is_object($param)){
            print_r($param);
        }else{
            echo($var_name.' : '.$param);
        }
        echo "</pre>";
        echo '<hr>';
    }

}